import { parse } from 'tldts';

export function getCookieUrlFromDomain(domain: string) {
    const url = parse(domain);
    return url.domain! ? "." + url.domain! : url.hostname!;
}